package com.mark.spring.annotation.life.cycle.init.destroy;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

/**
 * @Description:
 * @Author: Mark
 * @CreateDate: 2019/9/21 11:03
 * @Version: 3.00.001
 * @Copyright : 豆浆油条个人非正式工作室
 */
@Configuration
public class MoviceConfig {

    @Bean(initMethod = "initMethod",destroyMethod = "destroyMethod")
    //@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
    public Movice movice(){
        return new Movice();
    }
}
